import { createApp } from "vue"
import "uno.css"
import "@iconify-json/ep"
import router from "./router"
import App from "./views/App.vue"
const app = createApp(App)
import { login } from "@/api/user"

app.use(router).use(createPinia())
app.mount("#app")

login<{ username: string; token: string }>({
  username: "abyyds",
  password: "abyyds"
}).then((res) => {
  console.log(res.data?.username)
})
